﻿using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;


namespace WebApp
{
    public class MyStartupFilter : IStartupFilter
    {
        public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
        {
            Console.WriteLine("MyStartupFilter#Configure");
            return app =>
            {
                
                //app.
                Console.WriteLine("MyStartupFilter#Delegate Begin Invoke next(app)");
                next(app);
            };
        }
    }
}
